/**
 * 
 * 
 * @author Dennis
 */
public enum Numbers {
	
	TWO("2"), THREE("3"), FOUR("4"), FIVE("5"), 
	SIX("6"), SEVEN("7"), EIGHT("8"), NINE("9"),
	TEN("10"), TWENTY("20"), THIRTY("30"), FORTY("40"), 
	FIFTY("50"), SIXTY("60"), SEVENTY("70"), EIGHTY("80"), NINTY("90"), 
	HUNDRED("100"), TWO_HUNDRED("200"), THREE_HUNDRED("300"), 
	FOUR_HUNDRED("400"), FIVE_HUNDRED("500"), SIX_HUNDRED("600"), 
	SEVEN_HUNDRED("700"), EIGHT_HUNDRED("800"), NINE_HUNDRED("900"),
	THOUSAND("1000"), THREE_THOUSAND("3000"), TEN_THOUSAND("10000"), 
	THIRTY_THOUSAND("30000"), // For Gadget Enum class
	TWO_HUNDRED_FIFTY("250"), THREE_HUNDRED_FIFTY("350"), // For Goods Enum class
	THOUSAND_TWO_HUNDRED_FIFTY("1250"), SEVENTY_FIVE("75"), 
	SIX_HUNDRED_FIFTY("650"), THREE_THOUSAND_FIVE_HUNDRED("3500"), 
	HUNDRED_TWENTY_FIVE("125"), HUNDRED_FIFTY("150"), TWENTY_FIVE("25"), 
	TWNETY_SIX("26"), FIVE_THOUSAND("5000"), HUNDRED_EIGHTY("180"), TWENTY_THREE("23"), 
	SIXTY_TWO("62"), EIGHTY_ONE("81"), SIXTEEN("16"), FOUR_THOUSAND("4000"), 
	TWENTY_TWO("22"), HUNDRED_FORTY_THREE("143"), FORTY_FOUR("44"), 
	NINTY_FOUR("94"), SIXTY_EIGHT("68"), FIFTEEN("15"), HUNDRED_FORTY("140"), 
	HUNDRED_SEVEN("107"), FIFTY_THREE("53"), HUNDRED_SIXTY_SIX("166"), 
	SIXTY_ONE("61"), HUNDRED_NINTY_FOUR("194"), TWO_HUNDRED_TWENTY_TWO("222"), 
	HUNDRED_SIXTEEN("116"), FIFTY_SIX("56"), HUNDRED_THIRTY_FOUR("134"), 
	TWENTY_EIGHT("28"), TWENTY_SEVEN("27"), HUNDRED_TWENTY_EIGHT("128"), 
	HUNDRED_SIXTY("160"), FIFTY_ONE("51"), TWO_THOUSAND("2000"), 
	HUNDRED_EIGHTY_EIGHT("188"), TWO_HUNDRED_SIXTEEN("216"), 
	TWO_HUNDRED_FORTY_FOUR("244"), TWO_HUNDRED_SEVENTY_TWO("272"),  
	TWO_HUNDRED_EIGHTY_THREE("283"), TWENTY_NINE("29"), HUNDRED_NINTY_SEVEN("197"), 
	TWO_HUNDRED_EIGHTY_TWO("282"), THREE_HUNDRED_SIXTY_EIGHT("368"), 
	FOUR_HUNDRED_FIFTY_TWO("452"), THREE_HUNDRED_FORTY_THREE("343"), 
	SIX_HUNDRED_FORTY("640"), HUNDRED_THIRTY_SEVEN("137"), FOURTEEN("14"), 
	FIFTY_FIVE("55"), NINTY_SEVEN("97"), EIGHTY_TWO("82"), 
	FIVE_HUNDRED_THIRTY_TWO("532"), HUNDRED_ONE("101"), THIRTEEN("13"), 
	HUNDRED_FORTY_NINE("149"), TWENTY_ONE("21"), HUNDRED_THIRTEEN("113"), 
	NINTY_ONE("91"), TWO_HUNDRED_FIFTY_TWO("252"), TWELVE_HUNDRED("1200"), 
	HUNDRED_TWENTY("120"), SIX_HUNDRED_SEVETY("670"), ELEVEN("11"), 
	
	POINT_FIVE("0.5", true), ONE_POINT_FIVE("1.5", true), POINT_O_FIVE("0.05", true), 
	POINT_ONE_SEVEN_FOUR_THREE("0.1743", true), 
	POINT_ONE_THREE_EIGHT_SIX("0.1386", true), POINT_ONE("0.1", true);
	
	/**
	 * 
	 */
	private int num;
	
	/**
	 * 
	 */
	private float dec;
	
	/**
	 * 
	 * @param numStr
	 * @param isFloat
	 */
	private Numbers(String numStr, boolean isFloat) {
		try {
			if (!isFloat) {
				num = Integer.parseInt(numStr);
				dec = new Float(num);
			} else {
				dec = Float.parseFloat(numStr);
				num = Math.round(dec);
			}
		} catch (NumberFormatException e) {
			e.printStackTrace();
		}
	}
	
	/**
	 * 
	 * @param numStr
	 */
	private Numbers(String numStr) {
		try {
			num = Integer.parseInt(numStr);
			dec = new Float(num);
		} catch (NumberFormatException e) {
			e.printStackTrace();
		}
	}
	
	/**
	 * 
	 * @return integer number
	 */
	public int getNumber() {
		return this.num;
	}
	
	/**
	 * 
	 * @return floating point number
	 */
	public float getDecimal() {
		return this.dec;
	}

}
